/* Global */
body {
  position: relative;
  background: url('../img/bg.jpg');
  /*background: url('../img/bg_default.jpg');*/
  background-attachment: fixed;
  padding-top: 60px;
}
form {
  padding: 0px;
  margin: 0px;
}
.navbar {
  opacity: 0.9;
}
#nav-userbar img {
  margin-top: -8px;
  margin-bottom: -8px;
  width: 32px;
  height: 32px;
  border: 1px solid #ddd;
  border-radius: 4px;
}
.hero-unit {
  background: url('../img/front.jpg') no-repeat;
  display: none;
}
.sidebar-nav {
  padding: 9px 0;
}
.ace_editor_wrapper {
  height: 350px;
  position: relative;
  line-height: 18px;
  border: 1px solid #DDD;
  border-radius: 4px;
  border-bottom-right-radius: 0px;
  margin-top: 5px;
}
#editor {
  left: 0px;
  top: 0px;
  bottom: 1px;
  right: 1px;
  background: #fff;
}

/* Footer */
.footer {
  text-align: center;
  padding: 20px 0;
  margin-top: 20px;
  border-top: 1px solid #e5e5e5;
  background-color: #f5f5f5;
  background-color: rgba(245, 245, 245, 0.9);
}
.footer p {
  margin-bottom: 0;
  color: #777;
}
.footer-links {
  margin: 10px 0;
}
.footer-links li {
  display: inline;
  padding: 0 2px;
}
.footer-links li:first-child {
  padding-left: 0;
}

/* Post
-------------------------------------------------- */
#post-section > div > h4 {
  margin-bottom: 20px;
  color: #37f;
}
.media-object {
  width: 64px;
  height: 64px;
}
.media-body {
  font: normal 12px/20px Arial,sans-serif;
}
.media-heading {
  font: bold 13px/20px Arial,sans-serif;
}

/* Rating
-------------------------------------------------- */
.GrandMaster {
  font: bold 13px/20px Arial,sans-serif;
  color: #ff0000;
}
.CandidateMaster {
  font: bold 13px/20px Arial,sans-serif;
  color: #ff0000;
}
.Registered {
  font: bold 13px/20px Arial,sans-serif;
  color: #000000;
}

/* FloatLayer
-------------------------------------------------- */
#floatLayer {
  position: absolute;
  display: none;
  padding: 20px 20px;
  background: rgba(35, 35, 35, 0.6);
  width: 300px;
  z-index: 100;
  -webkit-border-radius: 8px;
     -moz-border-radius: 8px;
          border-radius: 8px;
}
#floatLayer p {
  line-height: 30px;
  text-align: center;
  color: rgb(235, 235, 235);
  font: bold 15px/20px Arial, Helvetica, sans-serif;
  text-shadow: #000 1px 1px 1px;
}

/* Sections
-------------------------------------------------- */

/* padding for in-page bookmarks and fixed navbar */
.span3 > table,
section {
  background-color: rgba(255, 255, 255, 0.8);
}
section > .page-header,
section > .lead {
  color: #5a5a5a;
}
section > ul li {
  margin-bottom: 5px;
}
section > .round-combo {
  margin: 0 0 20px 0;
  border: 1px solid #ddd;
  padding: 10px 20px;
  -webkit-border-radius: 6px;
     -moz-border-radius: 6px;
          border-radius: 6px;
}
section > .round-combo > h3 {
  line-height: 18px;
}
section > .round-combo > h3 > a:hover {
  text-decoration: none;
}
section > .round-combo > hr {
  margin: 10px auto;
  border-bottom: 0px;
}
section > .round-combo > .muted {
  font-style: italic;
  font-size: 90%;
}
.prob-title {
  color: blue;
  font: bold 20px/20px Arial,sans-serif;
}
.prob-limit {
  font: normal 14px/20px Arial,sans-serif;
  line-height: 16px;
  margin-bottom: 20px;
}
#problemset {
  background-color: rgba(255, 255, 255, 0.8);
}
#statustab {
  font: normal 13px/20px Arial,sans-serif;
}
#ranktab > thead > tr > th,
#ranktab > tbody > tr > td,
#statustab > thead > tr > th,
#statustab > tbody > tr > td {
  text-align: center;
}
.table tbody tr.success-even td {
  background-color: #efe;
}

.table tbody tr.error-even td {
  background-color: #fee;
}

.table tbody tr.warning-even td {
  background-color: #fcf8e3;
}

.table tbody tr.info-even td {
  background-color: #eeeeff;
}
#ranktab .accepted {
  background-color: #a9f5af;
  color: black;
}
#ranktab .firstblood {
  background-color: #008800;
  color: white;
  font-weight: bold;
}
#ranktab .failed {
  background-color: #FFDDDD;
  color: black;
}
#statustab .narrow {
  width: 60px;
}
#statustab .wide {
  width: 100px;
}
.pagination {
  margin: 0px;
}
.showtime {
  padding-left: 20px;
  margin: 0px;
}

/* Responsive
-------------------------------------------------- */

/* Tablet to desktop
------------------------- */
@media (min-width: 768px) and (max-width: 979px) {
  /* Remove any padding from the body */
  body {
    padding-top: 0;
  }
}

/* Tablet
------------------------- */
@media (max-width: 767px) {
  /* Remove any padding from the body */
  body {
    padding-top: 0;
  }

  /* Unfloat the back to top link in footer */
  .footer {
    margin-left: -20px;
    margin-right: -20px;
    padding-left: 20px;
    padding-right: 20px;
  }
  .footer p {
    margin-bottom: 9px;
  }
}

/* Landscape phones
------------------------- */
@media (max-width: 480px) {
  /* Remove padding above jumbotron */
  body {
    padding-top: 0;
  }

  /* Change up some type stuff */
  h2 small {
    display: block;
  }

  /* Tighten up footer */
  .footer {
    padding-top: 20px;
    padding-bottom: 20px;
  }
}